package com.cheejee.goodscenter.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.cheejee.goodscenter.module.entity.Category;
import com.cheejee.goodscenter.module.entity.GoodsSpecific;

@Mapper
public interface GoodsSpecificMapper {

	int deleteByPrimaryKey(Long id);

//	int insert(GoodsSpecific record);

	int insertSelective(GoodsSpecific record);

	GoodsSpecific selectByPrimaryKey(Long id);

	int updateByPrimaryKeySelective(GoodsSpecific record);

//	int updateByPrimaryKey(GoodsSpecific record);

	// ################ 以上为mybatis generator生成 #####################

	List<GoodsSpecific> selectBySelective(@Param("goodsId") Long goodsId, @Param("specificName") String specificName, @Param("specificValue") String specificValue);

	int insertMany(@Param("specifics") List<GoodsSpecific> specifics);

	int deleteById(@Param("id") Long... id);
	
	int deleteByGoodsId(@Param("id") Long id);
}